package com.linkq.ipinyin.utils;

import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * ClassName: DataUtils
 * Description: 数据工具类
 * date: 2022/3/14 14:42
 *
 * @author bn
 */
@Component
public class DataUtils {

    /**
     *  时间格式化yyyyMMdd
     * @return
     */
    public static String getToday(){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
        return dateFormat.format(new Date());
    }

//    public static void main(String[] args) {
//
//    }
}
